package web.zz.service;

import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import web.zz.bean.Log_info;
import web.zz.dao.LogDao;

import java.sql.SQLException;

@Service
public class LogService {
    @Autowired
    public LogDao logDao;

    public Log_info insert(Log_info logInfo) throws SQLException,ClassNotFoundException {
        LogDao.insert(logInfo);

        return logInfo;
    }

    public Log_info insert(String username) throws SQLException, ClassNotFoundException {
         return logDao.insert(username);

    }
}
